﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Incendios0_1.Camera.wpfdatamanager
{
    public class LinkedMenuItem<T>: MenuItem
    {
        private T link;

        public LinkedMenuItem(string p):base(p) { }

        public LinkedMenuItem(string p, EventHandler eventHandler) : base(p, eventHandler) { }

        public LinkedMenuItem(string p, T link) : base(p) 
        {
            this.link = link;
        }

        public LinkedMenuItem(string p, EventHandler eventHandler, T link) : base(p, eventHandler) 
        {
            this.link = link;
        }
        
        public T Link
        {
            get { return link; }
            set { this.link = value; }
        }
    }
}
